import { ApiProperty } from '@nestjs/swagger';
import { IsInt } from 'class-validator';

export class WordCollectionDtoParams {
  @ApiProperty({ required: false, default: 1 })
  type: number;

  // @ApiProperty({ required: false })
  // word: string;
}

export class WordCollectionListDto {
  @ApiProperty()
  @IsInt()
  pageSize: number;

  @ApiProperty()
  @IsInt()
  pageNum: number;

  // @ApiProperty()
  // @ValidateNested()
  // @Type(() => AppWordCollectionDtoParams)
  // params: AppWordCollectionDtoParams;
}
